﻿Public Class AdminHome
    Inherits System.Web.UI.Page

    Protected Sub Page_Load1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub


    Protected Sub manageEmployeeButton1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles manageWorkshopEmployeesButton.Click
        Response.Redirect("ManageEmployees.aspx")
    End Sub

    Protected Sub manageWorkshops1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles manageWorkshopsButton.Click
        Response.Redirect("AdminHome.aspx")
    End Sub

    Protected Sub viewProfile1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles viewProfileButton.Click
        Response.Redirect("/User_View/EmployeeView/ViewProfile.aspx")

    End Sub

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged
        Response.Redirect("/Workshop_Management/WorkshopA/EditWorkshopA.aspx?id=" + GridView1.SelectedRow.Cells(1).Text)
    End Sub

    Protected Sub createWorkshopButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles createWorkshopButton.Click
        Response.Redirect("/Workshop_Management/WorkshopA/CreateWorkshopA.aspx")
    End Sub

    Protected Sub createUserButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles createUserButton.Click
        Response.Redirect("/Employee_Management/CreateUser.aspx")
    End Sub

End Class